package org.example.mq.mqserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.mq.mqserver.core.Exchange;

import java.util.List;

@Mapper
public interface ExchangeMapper extends BaseMapper<Exchange> {
    public void createExchangeTable();

    public Integer batchInsertExchange(@Param("exchanges") List<Exchange> exchanges);
}
